﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TR_TrainingCoursesDtls.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.TR_TrainingCoursesDtls" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>รายละเอียดการอบรม</title>
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" /> 
    <style type="text/css">
        .style1
        {
            width: 25px;
        }
        .style2
        {
            width: 80px;
        }
        .style3
        {
            width: 39px;
        }
    </style>
</head>

  
     <script type="text/javascript">   

    
           function onTextChange(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
          } 
          
    </script>
    
<body>
<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Panel">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>    
    <asp:Panel ID="Panel" runat="server">
    <telerik:RadTabStrip 
        ID="RadTabStrip1" 
        runat="server" 
        MultiPageID="RadMultiPage1"
        SelectedIndex="1" 
        CausesValidation="False" 
        Skin="Office2007" 
        Width="1002px">
        <Tabs>
            <telerik:RadTab Text="ข้อมูลหลัก" Width="200px" Selected="True">
            </telerik:RadTab>
            <telerik:RadTab Text="โควต้าหน่วยงาน" Width="200px">
            </telerik:RadTab>
            <telerik:RadTab Text="รายชื่อวิทยากร" Width="200px" >
            </telerik:RadTab>
            <telerik:RadTab Text="แจ้งเวียน" Width="200px">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
      <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
      
        <telerik:RadPageView ID="RadPageView4" runat="server">    

          <asp:Panel ID="Panel5" runat="server">
            <table cellpadding="0" cellspacing="0" width="1000">
              <tr>
              <td colspan="3"><%--fiUpload--%>
                <div class="moduleDivSlim1000x450">
                <div class="moduleDivBottom1000">
                    <table align="center" width="980px">
                    <tr>
                        <td align="left" class="tableHeader">
                            ข้อมูลหลัก
                        </td>
                    </tr>
                    </table>        
                    <table align="center" style="width: 962px">
                        <tr>
                            <td>                             
                                <asp:Panel ID="Panel7" runat="server" Height="380px" ScrollBars="Auto" 
                                    Visible="true" Width="969px">
                                    <ul class="formList890px">
                                    <li>
                                        <table align="left" width="900px"> 
                                            <tr>
                                               <td align="right" style="width:35%">
                                                    หลักสูตรการอบรม :
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbTrainingCourseDescr" runat="server" ForeColor="Blue"></asp:Label>
                                                </td>
                                            </tr> 
                                        </table>
                                    </li>                                
                                    <li>
                                    <table align="left" width="900px">
                                    <tr>
                                       <td align="right" style="width:35%">
                                            เปิดรับสมัครตั้งแต่วันที่ :
                                        </td>
                                        
                                        <td style="width:80px">
                                            <asp:Label ID="lbDateSignStard" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                            
                                        <td align="right" class="style1">
                                            ถึง :
                                        </td> 
                                        <td align="left" class="style2">
                                            <asp:Label ID="lbDateSignEnd" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                        <td align="right" class="style3">
                                            เวลา :
                                        </td> 
                                        <td align="left">
                                            <asp:Label ID="lbTimeSignEnd" runat="server" ForeColor="Blue"></asp:Label> น.
                                        </td>
                                    </tr>
                                    </table>
                                    </li>
                                    <li>
                                    <table align="left" width="900px">
                                    <tr>
                                       <td align="right" style="width:35%">
                                            อบรมตั้งแต่วันที่ :
                                        </td>
                                        
                                        <td style="width:80px">
                                            <asp:Label ID="lbDateTrainStard" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                            
                                        <td align="right" class="style1">
                                            ถึง :
                                        </td> 
                                        <td align="left">
                                            <asp:Label ID="lbDateTrainEnd" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                    </tr>
                                    </table>
                                    </li>                                                                    
                                    <%--<li>
                                    <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                            คะแนนเต็ม : 
                                        </td>                                    
                                        <td>
                                            <asp:Label ID="lbTotalScore" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                        </tr>
                                        </table>
                                    </li>
                                    <li>
                                      <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                คะแนนผ่านเกณฑ์ :</td>                                        
                                            <td>
                                            <asp:Label ID="lbScoreAcceptable" runat="server" ForeColor="Blue"></asp:Label></td>
                                        </tr>
                                        </table>
                                    </li>               --%>                 
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                            จำนวนผู้เข้ารับการอบรมที่รองรับได้สูงสุด :</td>
                                        
                                        <td>
                                            <asp:Label ID="lbMaxTrainee" runat="server" ForeColor="Blue"></asp:Label>&#160;&#160;คน</td>
                                        </tr>
                                        </table>
                                    </li>
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                    จำนวนคนในโควต้า :</td>
                                                
                                                <td>
                                                    <asp:Label ID="lbQuota" runat="server" ForeColor="Blue"></asp:Label>&#160;&#160;คน
                                                </td>
                                           </tr>
                                        </table>
                                    </li>
                                    <%--<li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                จำนวนผู้สมัคร :
                                            </td>
                                            <td>
                                                <asp:Label ID="lbTotalTrainee" runat="server" ForeColor="Blue"></asp:Label>&#160;&#160;คน
                                            </td>
                                        </tr>
                                            
                                        </table>
                                    </li>
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                จำนวนผู้มีสิทธิ์เข้ารับการอบรม :
                                            </td>
                                            
                                            <td>
                                                <asp:Label ID="lbAccepTrainee" runat="server" ForeColor="Blue"></asp:Label>&#160;&#160;คน
                                            </td>
                                        </tr>
                                        </table>
                                    </li>--%>
                                    <li>
                                      <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                ค่าใช้จ่ายประมาณในการอบรม :
                                            </td>
                                            <td>
                                                <asp:Label ID="lbTotalPrice" runat="server" ForeColor="Blue"></asp:Label>&#160;&#160;บาท
                                            </td>
                                        </tr>
                                        </table>
                                    </li>
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                    สถานที่ของการอบรม :
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbSchedule" runat="server" ForeColor="Blue"></asp:Label>
                                                </td>
                                           </tr>
                                        </table>
                                    </li> 
                                    </ul> 
                                 </asp:Panel>
                            </td>    
                        </tr>            
                   </table>
                </div>
                </div>            
              </td>                                             
              </tr>         
             </table>
          </asp:Panel>

        </telerik:RadPageView>
                                       
        <telerik:RadPageView ID="RadPageView1" runat="server">
            <asp:Panel ID="Panel6" runat="server">
            <table cellpadding="0" cellspacing="0" width="1000">
                <tr>
                <td colspan="3">
                <div class="moduleDivSlim1000x450">
                <div class="moduleDivBottom1000">
                    <table align="center" width="980px">
                    <tr>
                        <td align="left" class="tableHeader">
                            รายละเอียดโควต้าหน่วยงาน</td>
                    </tr>
                    </table>        
                    <table align="center" style="width: 962px">
                        <tr>
                            <td>                             
                                <asp:Panel ID="PanelGrid2" 
                                    runat="server" 
                                    Height="380px" 
                                    ScrollBars="Auto" 
                                    Visible="true" 
                                    Width="960px">
                                    <telerik:RadGrid ID="RadGrid2" 
                                        runat="server" 
                                        AllowAutomaticDeletes="True" 
                                        AllowFilteringByColumn="True" 
                                        AllowMultiRowEdit="True" 
                                        AllowMultiRowSelection="True" 
                                        AllowPaging="True" 
                                        AllowSorting="True" 
                                        AutoGenerateColumns="False" 
                                        EnableAJAX="True" 
                                        EnableAJAXLoadingTemplate="True" 
                                        GridLines="None" 
                                        Height="360px" 
                                        OnItemCommand="RadGrid2_ItemCommand" 
                                        Skin="Outlook" Width="950px">
                                        <mastertableview 
                                            allowmulticolumnsorting="True" 
                                            cellspacing="-1" 
                                            clientdatakeynames="course_quota_seq"
                                            commanditemdisplay="Top" 
                                            datakeynames="course_quota_seq"
                                            nomasterrecordstext="&lt; ไม่มีข้อมูล &gt;">
                                            <commanditemtemplate>
                                                <table width="99%">
                                                <tr>
                                                    <td align="left">
                                                        <asp:LinkButton ID="AddInstitute" 
                                                            runat="server" 
                                                            CommandName="AddData" 
                                                            Visible="true">
                                                            <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                                                style="border:0px;vertical-align:middle;" /> เพิ่มรายการใหม่
                                                        </asp:LinkButton>
                                                    </td>
                                                    <td align="right">
                                                    </td>
                                                </tr>
                                                </table>
                                            </commanditemtemplate>
                                            <Columns>
                                                <telerik:GridTemplateColumn 
                                                    AllowFiltering="false" 
                                                    HeaderStyle-HorizontalAlign="Center" 
                                                    HeaderStyle-Width="20px" 
                                                    ShowFilterIcon="false">
                                                    <ItemTemplate>
                                                        <table>
                                                            <asp:ImageButton ID="cmdEdit" 
                                                                runat="server" 
                                                                CommandName="DataEdit" 
                                                                ImageUrl="../Images/Buttons/Edit.gif" 
                                                                OnClientClick="javascript: return confirm('แก้ไขข้อมูลที่เลือก?');" 
                                                                ToolTip="แก้ไขรายการ" />
                                                        </table>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                                </telerik:GridTemplateColumn>
                                                
                                                <telerik:GridTemplateColumn 
                                                    AllowFiltering="false" 
                                                    HeaderStyle-HorizontalAlign="Center" 
                                                    HeaderStyle-Width="20px" 
                                                    ShowFilterIcon="false">
                                                    <ItemTemplate>
                                                        <table>
                                                            <asp:ImageButton ID="cmdDelete" 
                                                                runat="server" 
                                                                CommandName="Delete" 
                                                                ImageUrl="../Images/Buttons/Delete.gif" 
                                                                OnClientClick="javascript: return confirm('ลบข้อมูลที่เลือก?');" 
                                                                ToolTip="ลบรายการ"/>
                                                        </table>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                                </telerik:GridTemplateColumn>
                                                
                                                <telerik:GridBoundColumn 
                                                    DataField="course_quota_seq" 
                                                    UniqueName="course_quota_seq" 
                                                    Visible="false">
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridBoundColumn 
                                                    DataField="train_seq" 
                                                    UniqueName="train_seq" 
                                                    Visible="false">
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridBoundColumn 
                                                    DataField="job_site_seq" 
                                                    UniqueName="job_site_seq" 
                                                    Visible="false">
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridBoundColumn 
                                                    DataField="job_site_ref" 
                                                    HeaderText="รหัสอ้างอิงหน่วยงาน" 
                                                    UniqueName="job_site_ref" 
                                                    FilterControlWidth="100%" 
                                                    AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="Contains" 
                                                    ShowFilterIcon="False">
                                                    <HeaderStyle Width="150px" HorizontalAlign = "Center" />
                                                    <ItemStyle Width="50px" />
                                                </telerik:GridBoundColumn>
                                                    
                                                <telerik:GridBoundColumn 
                                                    DataField="job_site_name" 
                                                    HeaderText="ชื่อหน่วยงาน" 
                                                    UniqueName="job_site_name" 
                                                    FilterControlWidth="100%" 
                                                    AutoPostBackOnFilter="true"
                                                    CurrentFilterFunction="Contains" 
                                                    ShowFilterIcon="False">
                                                    <HeaderStyle HorizontalAlign = "Center" />
                                                    <ItemStyle HorizontalAlign="Left"/>
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridBoundColumn 
                                                    AutoPostBackOnFilter="true" 
                                                    CurrentFilterFunction="Contains" 
                                                    DataField="quota" 
                                                    FilterControlWidth="100%" 
                                                    HeaderText="จำนวนคนตาม โควต้า" 
                                                    ShowFilterIcon="false" 
                                                    UniqueName="quota">
                                                    <HeaderStyle HorizontalAlign="Center" Width="100px" Wrap="False" />
                                                </telerik:GridBoundColumn>
                                            </Columns>                        
                                            <PagerStyle AlwaysVisible="true" 
                                                FirstPageToolTip="กลับหน้าแรก" 
                                                LastPageToolTip="ไปหน้าสุดท้าย" 
                                                Mode="NumericPages" 
                                                NextPagesToolTip="หน้าถัดไป" 
                                                NextPageToolTip="หน้าถัดไป" 
                                                PrevPagesToolTip="ย้อนกลับ" 
                                                PrevPageToolTip="ย้อนกลับ" />
                                        </mastertableview>
                                        <clientsettings>
                                            <selecting allowrowselect="true" />
                                            <scrolling allowscroll="true" usestaticheaders="True" />
                                        </clientsettings>
                                    </telerik:RadGrid>
                                </asp:Panel>
                                <asp:Panel ID="PanelAddData2" 
                                    runat="server"
                                    Height="376px"
                                    Visible="false" 
                                    width="980px" 
                                    align="center"                                
                                    ScrollBars="Auto">
                                        <ul class="formList890px">
                                             <li>
                                                <table align="center" style="width: 800px" >
                                                    <tr>
                                                        <td align="left" class="tableDetailHeader" style="width: 950px">
                                                            ข้อมูลโควต้าหน่วยงาน
                                                        </td>
                                                    </tr>
                                                </table>
                                            </li>
                                            <li>
                                                <table style="width: 807px">
                                                <tr>
                                                    <td>
                                                        <telerik:RadTextBox ID="txtQuotaSeq" runat="server" Visible="false" Width="300px"/>
                                                    </td>
                                                </tr>                                            
                                                <tr>  
                                                    <td align="right" style="width: 200px">
                                                        หน่วยงาน :
                                                    </td>                                                 
                                                    <td align="left">
                                                        <telerik:RadComboBox 
                                                            runat="server" 
                                                            ID="cbJobSite" 
                                                            AllowCustomText ="true" 
                                                            DataTextField="Name" 
                                                            DataValueField="Sequence" 
                                                            Filter ="Contains"
                                                            AutoPostBack="true"
                                                            CausesValidation ="false"
                                                            OnClientTextChange = "onTextChange"
                                                            EmptyMessage = "... เลือกหน่วยงาน..."
                                                            Width="360px" 
                                                            ZIndex="8000" Height="200px" >
                                                        </telerik:RadComboBox>
                                                        <span class="validate">*</span>
                                                    <asp:RequiredFieldValidator 
                                                        runat="server" 
                                                        ID="RequiredFieldValidator1" 
                                                        ControlToValidate="cbJobSite"
                                                        ErrorMessage="กรุณากรอกข้อมูลหน่วยงาน " >
                                                    </asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>  
                                                    <td align="right" style="width: 200px">
                                                        โควต้า (คน) :
                                                    </td>                                                 
                                                    <td align="left">                                                    
                                                        <telerik:RadTextBox ID="txtquota" runat="server" Width="300px" />
                                                        <span class="validate">*</span>
                                                    <asp:RequiredFieldValidator 
                                                        runat="server" 
                                                        ID="RequiredFieldValidator6" 
                                                        ControlToValidate="txtquota"
                                                        ErrorMessage="กรุณากรอกข้อมูลโควต้า " >
                                                    </asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                </table>  
                                                                                        
                                                <table width="600px">
                                                <tr>
                                                    <td align="left">                                        
                                                        <asp:Label ID="lblError2" runat="server" ForeColor="Red" Font-Size="Small" Font-Bold="true" />
                                                    </td>                                     
                                                </tr>
                                                </table>
                                            </li>
                                        </ul>                                                                           
                                      <table style="width: 646px">
                                        <tr>                                    
                                        <td align="right" style="width: 321px">
                                            <asp:Button ID="btnSave2" onclick="btnSave2_Click" runat="server" CssClass="button" Text="บันทึก" Width="80px" />   
                                            <asp:Button ID="btnUpdate2" onclick="btnUpdate2_Click" runat="server" CssClass="button" Visible="false" Text="แก้ไข" Width="80px" />                         
                                        </td>
                                        <td align="left">
                                            <asp:Button ID="btnCancel2" OnClick="btnCancel2_Click" runat="server" CssClass="button" Text="ยกเลิก" Width="80px" />
                                        </td>
                                        </tr>
                                    </table>
                                </asp:Panel>                                
                            </td>               
                        </tr>
                    </table>
               
                </div>
                </div>
                </td>
                </tr>
            </table>
            </asp:Panel>
        </telerik:RadPageView>
      
        <telerik:RadPageView ID="RadPageView2" runat="server" Width="100%">

            <asp:Panel ID="Panel1" runat="server">
        <table cellpadding="0" cellspacing="0" width="1000">
              <tr>
              <td colspan="3">
            <div class="moduleDivSlim1000x450">
            <div class="moduleDivBottom1000">
            <table align="center" width="980px">
            <tr>
                <td align="left" class="tableHeader">
                    รายชื่อวิทยากร</td>
            </tr>
            </table>
            <table width="980px" align="Center">
            <tr align="Center">
            <td>
            <asp:Panel ID="PanelGrid1" 
                runat="server" 
                Height="331px" 
                ScrollBars="Auto" 
                Width="980px">                
                    <telerik:RadGrid ID="RadGrid1" runat="server" 
                    AllowAutomaticDeletes="True" AllowFilteringByColumn="True" 
                    AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" 
                    EnableAJAXLoadingTemplate="True" GridLines="None" Height="328px" 
                    OnItemCommand="RadGrid1_ItemCommand" Skin="Outlook" Width="960px">
                        <mastertableview allowmulticolumnsorting="True" cellspacing="-1" 
                    clientdatakeynames="Sequence" commanditemdisplay="Top" 
                    datakeynames="Sequence" nomasterrecordstext="&lt; ไม่มีข้อมูล &gt;">
                            <commanditemtemplate>
                                <table width="99%">
                                    <tr>
                                        <td align="left">
                                            <asp:LinkButton ID="AddInstitute" 
                                                runat="server" 
                                                CommandName="AddData" 
                                                Visible="true">
                                                <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                                style="border:0px;vertical-align:middle;" /> เพิ่มรายการใหม่
                                            </asp:LinkButton>
                                        </td>
                                        <td align="right">
                                        <asp:Button id="btnReceive" 
                                            CommandName="Inform"                                                                                                                                                                                                                       
                                            runat="server" Width="80px" 
                                            CssClass="button" Text="แจ้งเวียน" 
                                            Height="23px">
                                        </asp:Button>
                                    </td>
                                    </tr>
                                </table>
                            </commanditemtemplate>
                            <Columns>    
                                <%--<telerik:GridClientSelectColumn 
                                    UniqueName="ClientSelectColumn">
                                    <HeaderStyle Width="30px" HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </telerik:GridClientSelectColumn> --%>                            
                                <telerik:GridTemplateColumn AllowFiltering="false" 
                                    HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="20px" 
                                    ShowFilterIcon="false">
                                    <ItemTemplate>
                                        <table>
                                            <asp:ImageButton ID="cmdDelete0" runat="server" CommandName="Delete" 
                                                ImageUrl="../Images/Buttons/Delete.gif" 
                                                OnClientClick="javascript: return confirm('ลบข้อมูลที่เลือก?');" 
                                                ToolTip="ลบรายการ" />
                                        </table>
                                    </ItemTemplate>
                                
                                    <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn 
                                    AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" 
                                    DataField="Sequence" 
                                    DataType="System.Int32"
                                    FilterControlWidth="100%" 
                                    HeaderText="รหัส" 
                                    ShowFilterIcon="false" 
                                    UniqueName="trainer_seq"
                                    Visible="false">
                                    <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn 
                                    AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" 
                                    DataField="Trainer" 
                                    FilterControlWidth="100%" 
                                    HeaderText="ชื่อวิทยากร" 
                                    ShowFilterIcon="false" 
                                    UniqueName="Trainer"> 
                                    <HeaderStyle HorizontalAlign="Center" />                                                          
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" DataField="Remark" 
                                    FilterControlWidth="100%" HeaderText="รายละเอียด" 
                                    ShowFilterIcon="false" UniqueName="Remark">
                                    <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                </telerik:GridBoundColumn>
                                <%--<telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" DataField="full_name" 
                                    FilterControlWidth="100%" HeaderText="ผลการอบรม" ShowFilterIcon="false" 
                                    UniqueName="">
                                    <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" DataField="full_name" 
                                    FilterControlWidth="100%" HeaderText="คะแนนที่ได้" ShowFilterIcon="false" 
                                    UniqueName="">
                                    <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                    CurrentFilterFunction="Contains" DataField="full_name" 
                                    FilterControlWidth="100%" HeaderText="จำนวนชั่วโมง" ShowFilterIcon="false" 
                                    UniqueName="">
                                    <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                </telerik:GridBoundColumn>--%>
                            </Columns>
                
                            <PagerStyle AlwaysVisible="true" FirstPageToolTip="กลับหน้าแรก" 
                    LastPageToolTip="ไปหน้าสุดท้าย" Mode="NumericPages" 
                    NextPagesToolTip="หน้าถัดไป" NextPageToolTip="หน้าถัดไป" 
                    PrevPagesToolTip="ย้อนกลับ" PrevPageToolTip="ย้อนกลับ" />
                        </mastertableview>
                        <clientsettings>
                            <selecting allowrowselect="true" />
                            <scrolling allowscroll="true" usestaticheaders="True" />
                        </clientsettings>
                    </telerik:RadGrid>
                </asp:Panel>
                <asp:Panel ID="PanelAddData1" 
                    runat="server"
                    Height="376px"
                    Visible="false" 
                    width="980px" 
                    align="center"                                
                    ScrollBars="Auto">
                        <ul class="formList890px">
                             <li>
                                <table align="center" style="width: 800px" >
                                    <tr>
                                        <td align="left" class="tableDetailHeader" style="width: 980px">
                                            ข้อมูลวิทยากร
                                        </td>
                                    </tr>
                                </table>
                            </li>
                            <li>
                                <table style="width: 800px">
                                <tr>
                                    <td>
                                        <telerik:RadTextBox ID="txtSequence" runat="server" Visible="false" Width="300px"/>
                                    </td>
                                </tr>                                            
                                <tr>  
                                    <td align="right" style="width: 200px">
                                        ชื่อวิทยากร :
                                    </td>                                                 
                                    <td align="left">
                                        <telerik:RadComboBox 
                                            runat="server" 
                                            ID="cbTrainer" 
                                            AllowCustomText ="true" 
                                            DataTextField="trainer" 
                                            DataValueField="trainer_seq" 
                                            Filter ="Contains"
                                            AutoPostBack="true"
                                            CausesValidation ="false"
                                            OnClientTextChange = "onTextChange"
                                            EmptyMessage = "... เลือกวิทยากร..."
                                            Width="260px" 
                                            ZIndex="8000" Height="80px" >
                                        </telerik:RadComboBox>
                                    </td>
                                </tr>
                                <tr>  
                                    <td align="right" style="width: 200px" >
                                        รายละเอียด:
                                    </td>                                                 
                                    <td align="left">                                                    
                                        <telerik:RadTextBox ID="txtRemark" runat="server" Width="300px" Height="60px"/>
                                        <%--<span class="span">*</span>--%>
                                    </td>
                                </tr>
                                </table>  
                                                                        
                                <table width="600px">
                                <tr>
                                    <td align="left">                                        
                                        <asp:Label ID="lbError1" runat="server" ForeColor="Red" Font-Size="Small" Font-Bold="true" />
                                    </td>                                     
                                </tr>
                                </table>
                            </li>
                        </ul>                                                                           
                      <table style="width: 646px">
                        <tr>                                    
                        <td align="right" style="width: 321px">
                            <asp:Button ID="btnSave1" onclick="btnSave1_Click" runat="server" CssClass="button" Text="บันทึก" Width="80px" />   
                            <asp:Button ID="btnUpdate1" onclick="btnUpdate1_Click" runat="server" CssClass="button" Visible="false" Text="แก้ไข" Width="80px" />                         
                        </td>
                        <td align="left">
                            <asp:Button ID="btnCancel1" OnClick="btnCancel1_Click" runat="server" CssClass="button" Text="ยกเลิก" Width="80px" />
                        </td>
                        </tr>
                    </table>
                </asp:Panel>  
            </td>
            </tr>
            </table>
            </div>
    </div>
    </td>
    </tr>
    </table>
    </asp:Panel>
            
    </telerik:RadPageView>

        <telerik:RadPageView ID="RadPageView3" runat="server" Width="100%">

        <asp:Panel ID="Panel3" runat="server">
        <table cellpadding="0" cellspacing="0" width="1000">
          <tr>
          <td colspan="3">
            <div class="moduleDivSlim1000x450">
            <div class="moduleDivBottom1000">
                <%--<table align="center" width="980px">
                <tr>
                    <td align="left" class="tableHeader">กรองข้อมูลก่อนการแจ้งเวียน</td>
                </tr>
                </table>
                <table align="center" style="width: 975px">
                <tr>
                    <td width="12%">ประเภทบุคลากร :</td>
                    <td align="left" class="style1">&#160;
                        <telerik:RadComboBox 
                            ID="ddlEmployeeType" 
                            runat="server" 
                            AllowCustomText="true" 
                            AutoPostBack="True" 
                            CausesValidation="false" 
                            DataTextField="Name" 
                            DataValueField="Sequence" 
                            EmptyMessage="... เลือกประเภทบุคลากร ..." 
                            Filter="Contains" 
                            OnClientTextChange="onTextChange" 
                            onselectedindexchanged="ddlEmployeeType_SelectedIndexChanged" 
                            Width="250px">
                        </telerik:RadComboBox>
                    </td>
                    <td width="15%" align="right">
                        บุคลกรระดับตั้งแต่</td>
                    <td align="left" class="style1">
                       <telerik:RadComboBox 
                            ID="RadComboBox3" 
                            runat="server" 
                            AllowCustomText="true" 
                            AutoPostBack="True" 
                            CausesValidation="false" 
                            DataTextField="Name" 
                            DataValueField="Sequence" 
                            EmptyMessage="... ทั้งหมด..." 
                            Filter="Contains" 
                            Height="16px" 
                            OnClientTextChange="onTextChange" 
                            onselectedindexchanged="ddlEmployeeType_SelectedIndexChanged" 
                            Width="104px">
                        </telerik:RadComboBox>
                    </td>
                    <td align="left" width="5%">ถึง </td>
                    <td align="left" class="style1">
                       <telerik:RadComboBox 
                            ID="RadComboBox4" 
                            runat="server" 
                            AllowCustomText="true" 
                            AutoPostBack="True" 
                            CausesValidation="false" 
                            DataTextField="Name" 
                            DataValueField="Sequence" 
                            EmptyMessage="... ทั้งหมด..." Filter="Contains" 
                            Height="16px" 
                            OnClientTextChange="onTextChange" 
                            onselectedindexchanged="ddlEmployeeType_SelectedIndexChanged" 
                            Width="104px">
                        </telerik:RadComboBox>
                    </td>
                    
                    <td align="left" width="10%">
                        <asp:Button 
                            ID="Button1" 
                            runat="server" 
                            onclick="btnSearch_Click" 
                            Text="ค้นหา" 
                            Width="80px" />
                    </td>
                </tr>
            </table>  --%>              
            <table width="980px" align="center">
            <tr align="center">
            <td>
                <asp:Panel ID="Panel4" 
                    runat="server" 
                    Height="326px" 
                    ScrollBars="Auto"
                    Width="980px">
                    <telerik:RadGrid ID="RadGrid3" 
                        runat="server" 
                        AllowAutomaticDeletes="True" 
                        AllowFilteringByColumn="True" 
                        AllowMultiRowEdit="True" 
                        AllowMultiRowSelection="True" 
                        AllowPaging="True" 
                        AllowSorting="True" 
                        AutoGenerateColumns="False" 
                        EnableAJAX="True" 
                        EnableAJAXLoadingTemplate="True" 
                        GridLines="None" 
                        Height="300px" 
                        OnItemCommand="RadGrid2_ItemCommand" 
                        Skin="Outlook" Width="940px">
                        <mastertableview 
                            allowmulticolumnsorting="True" 
                            cellspacing="-1" 
                            clientdatakeynames="course_quota_seq"
                            commanditemdisplay="Top" 
                            datakeynames="course_quota_seq"
                            nomasterrecordstext="&lt; ไม่มีข้อมูล &gt;">
                            <commanditemtemplate>
                                <table width="99%">
                                <tr>
                                    <td align="left">
                                        <%--<asp:LinkButton ID="AddInstitute" 
                                            runat="server" 
                                            CommandName="AddData" 
                                            Visible="true">
                                            <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                                style="border:0px;vertical-align:middle;" /> เพิ่มรายการใหม่
                                        </asp:LinkButton>--%>
                                    </td>
                                    <td align="right">
                                        <asp:Button id="btnReceive" 
                                            CommandName="Inform"                                                                                                                                                                                                                       
                                            runat="server" Width="80px" 
                                            CssClass="button" Text="แจ้งเวียน" 
                                            Height="23px">
                                        </asp:Button>
                                    </td>
                                </tr>
                                </table>
                            </commanditemtemplate>
                            <Columns>
                            <telerik:GridClientSelectColumn 
                                UniqueName="ClientSelectColumn">
                                <HeaderStyle Width="30px" HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Center" />
                            </telerik:GridClientSelectColumn> 
                                                               
                                <telerik:GridBoundColumn 
                                    DataField="course_quota_seq" 
                                    UniqueName="course_quota_seq" 
                                    Visible="false">
                                </telerik:GridBoundColumn>
                                
                                <telerik:GridBoundColumn 
                                    DataField="job_site_name" 
                                    HeaderText="หน่วยงานที่ต้องการแจ้งเวียน" 
                                    UniqueName="job_site_name" 
                                    FilterControlWidth="100%" 
                                    AutoPostBackOnFilter="true"
                                    CurrentFilterFunction="Contains" 
                                    ShowFilterIcon="False">
                                    <HeaderStyle HorizontalAlign = "Center" Width="70%" />
                                    <ItemStyle HorizontalAlign="Left"/>
                                </telerik:GridBoundColumn>
                                
                                 <telerik:GridBoundColumn 
                                    DataField="area_name" 
                                    HeaderText="พื้นที่" 
                                    UniqueName="area_name" 
                                    FilterControlWidth="100%" 
                                    AutoPostBackOnFilter="true"
                                    CurrentFilterFunction="Contains" 
                                    ShowFilterIcon="False">
                                    <HeaderStyle HorizontalAlign = "Center" />
                                    <ItemStyle HorizontalAlign="Left"/>
                                </telerik:GridBoundColumn>
                                
                            </Columns>            
                            <PagerStyle 
                                AlwaysVisible="true" 
                                FirstPageToolTip="กลับหน้าแรก" 
                                LastPageToolTip="ไปหน้าสุดท้าย" 
                                Mode="NumericPages" 
                                NextPagesToolTip="หน้าถัดไป" 
                                NextPageToolTip="หน้าถัดไป" 
                                PrevPagesToolTip="ย้อนกลับ" 
                                PrevPageToolTip="ย้อนกลับ" />
                        </mastertableview>
                        <clientsettings>
                            <selecting allowrowselect="true" />
                            <scrolling allowscroll="true" usestaticheaders="True" />
                        </clientsettings>
                    </telerik:RadGrid>                                   
                </asp:Panel>
            </td>
        </tr>
        </table>
        </div>
        </div>
    </td>
    </tr>
    </table>
    </asp:Panel>            
    </telerik:RadPageView>
</telerik:RadMultiPage>
</asp:Panel>
</form>
</body>
</html>
